package cn.sczhyt.modules.sys.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import cn.sczhyt.modules.sys.entity.SysUserInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.sczhyt.modules.sys.entity.vo.RoleSearchEntity;
import cn.sczhyt.modules.sys.entity.vo.SysUserInfoVOEntity;
import cn.sczhyt.modules.sys.entity.vo.UserInfoVoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 政协委员信息表
 * 
 * @author luojialin
 * @email 78357966@qq.com
 * @date 2020-05-29 11:42:12
 */
@Mapper
public interface SysUserInfoDao extends BaseMapper<SysUserInfoEntity> {

    SysUserInfoEntity selectByUserId(String userId);

    List<SysUserInfoEntity> selectLike(SysUserInfoEntity userInfo);

    List<SysUserInfoVOEntity> findLike(SysUserInfoVOEntity userInfoVO);

    List<SysUserInfoVOEntity> findAll();

    List<SysUserInfoEntity> selectByUserIds(List<String> userIds);

    List<SysUserInfoEntity> selectByIds(@Param("array") List<String> userIds);


    IPage<UserInfoVoEntity> listAllRemoveMe(Page<UserInfoVoEntity> pages,
                                            @Param("userId") String userId,
                                            @Param("search") RoleSearchEntity search);

    List<SysUserInfoEntity> findList();

    List<String> selectListByDelegation(String delegation);
}
